package com.codeest.geeknews;

import com.codeest.geeknews.di.component.AppComponent;
import com.codeest.geeknews.di.module.AppModule;

import it.cosenonjaviste.daggermock.DaggerMockRule;

public class EspressoDaggerMockRule extends DaggerMockRule<AppComponent> {
    public EspressoDaggerMockRule() {
        super(AppComponent.class, new AppModule(AppUtils.getApp()));
        set(new DaggerMockRule.ComponentSetter<AppComponent>() {
            @Override
            public void setComponent(AppComponent component) {
                AppUtils.getApp().setComponent(component);
            }
        });
    }


}